package com.blazer.a;

public class login {
    public static void main(String[] args) {
        int i=10;
        int j=20;
        int k=10;
        boolean result=(i==k)&&(i>j);
        System.out.println(result);
        boolean result2=i==k||i>j;
        System.out.println(result2);
        boolean result3=i==k^i>j;
        System.out.println(result3);
        boolean result4=!(i>j);
        System.out.println(result4);
        int a=10;
        int b=20;
        //||前面是true则不执行
        boolean result5=(++b>100)||(++a<100);
        System.out.println(result5);
        System.out.println(a);
        System.out.println(b);

int jigescore=60;
int score=50;
String resultscore=score>=jigescore?"及格":"不及格";
        System.out.println(resultscore);
int old1=80;
int old2=90;
String resultold=old1>old2 ? "最高年龄"+old1:"最高年龄"+old2;
        System.out.println(resultold);
        int year1=60;
        int year2=60;
        int year3=60;
        String resultyear=year1>year2 ? (year1>year3 ? "最大年龄"+year1: "最大年龄"+year3 ) :(year2>year3?"最大年龄"+year2: "最大年龄"+year3);
        System.out.println(resultyear);

    }
}
